FROM nginx
# 申明dockerfile时可传入的变量
ARG API_PROXY 
# 申明系统变量
ENV API_PROXY ${API_PROXY} 
COPY /config/nginx.conf /etc/nginx/nginx.conf
COPY /dist /usr/share/nginx/html
# RUN apt update && apt install vim   

EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]

#  docker build -f Dockerfile -t ui-base:test  .
#  docker